package com.movie.api.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户VIP表
 */
@Data
@TableName("user_isvip")
@NoArgsConstructor
@AllArgsConstructor
public class UserVip implements Serializable {
    // id
    private int id;
    // 用户是否是VIP，默认0，是VIP是1
    private int isVip;
    // 关联User表的id字段唯一键
    private String userId;

    public UserVip(int isVip, String userId) {
        this.isVip = isVip;
        this.userId = userId;
    }
}